<template>
  <div>
    <Row class="expand-row">
      <Col span="6">
        <span class="expand-key">注册时间：</span>
        <span class="expand-value"> {{ row.regtime }}</span>
      </Col>
      <Col span="6">
        <span class="expand-key">近次访问：</span>
        <span class="expand-value">{{ row.lasttime }}</span>
      </Col>
      <Col span="6">
        <span class="expand-key">性别：</span>
        <span class="expand-value">
          <Icon
            type="md-male"
            v-show="row.sex === 1"
            color="#2db7f5"
            size="15"
            class="mr5"
          />
          <Icon
            type="md-female"
            v-show="row.sex === 2"
            color="#ed4014"
            size="15"
            class="mr5"
          />
          <span v-if="row.sex == 0">保密</span>
        </span>
      </Col>
    </Row>
    <Row class="expand-row">
      <Col span="6">
        <span class="expand-key">团队数量：</span>
        <span class="expand-value">{{ row.total_count || 0 }} 人</span>
      </Col>
    </Row>

    <Row class="expand-row">
      <Col span="6">
        <span class="expand-key">身份证：</span>
        <span class="expand-value">{{ row.card }}</span>
      </Col>

      <Col span="6">
        <span class="expand-key">燃料：</span>
        <span class="expand-value">{{ row.ticket_value || 0 }} 人</span>
      </Col>

      <Col span="6">
        <span class="expand-key">潮豆：</span>
        <span class="expand-value">{{ row.credits_money || 0 }} 人</span>
      </Col>
      <Col span="6">
        <span class="expand-key">津贴：</span>
        <span class="expand-value">{{ row.credits_money || 0 }}条</span>
      </Col>
      <Col span="6">
        <span class="expand-key">代理金：</span>
        <span class="expand-value">{{ row.contribution_money }}</span>
      </Col>
    </Row>
    <Row class="expand-row">
      <Col span="6">
        <span class="expand-key">培育奖：</span>
        <span class="expand-value">{{ row.active_money || 0 }} 人</span>
      </Col>

      <Col span="6">
        <span class="expand-key">淘物金：</span>
        <span class="expand-value">{{ row.weipai_money || 0 }} 人</span>
      </Col>

      <Col span="6">
        <span class="expand-key">备注：</span>
        <span class="expand-value">{{ row.mark }}</span>
      </Col>
    </Row>
  </div>
</template>

<script>
export default {
  name: 'table-expand',
  props: {
    row: Object,
  },
}
</script>

<style scoped>
.expand-row {
  margin-bottom: 16px;
}
</style>
